//
//  UIView+Extension.h
//  QuXiang
//
//  Created by Duncan on 2020/6/22.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#ifdef DEBUG

#define IsArgInvalid(curView, brotherView) NSAssert((self.superview == brotherView.superview) && !(CGRectEqualToRect(brotherView.frame, CGRectZero)), @"UIView (CustomAutoLayout)参数出错")
#define IsSuperViewInvalid(curView) NSAssert((self.superview != nil), @"UIView (CustomAutoLayout)父控件没有设置参数出错")

#else

#define IsArgInvalid(curView, brotherView)
#define IsSuperViewInvalid(curView)

#endif

@interface UIView (Extension)

/// 向视图添加子视图数组
- (void)addSubviews:(NSArray <UIView *>*)subviews;


- (void)addBordWidthWith:(CGFloat)width color:(UIColor *)color;

@end

NS_ASSUME_NONNULL_END
